<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- 引入样式 -->
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    <!-- 引入组件库 -->
    <script src="../js/vue.js"></script>
    <script src="https://unpkg.com/element-ui/lib/index.js"></script>
    <!-- <link rel="stylesheet" href="../element-ui/index.css"> -->
    <!-- <script src="../element-ui/index.js"></script> -->
</head>
<body>
    <div id="app">
        <!-- 按钮组件 -->
        <el-button @click="visible = true">Button</el-button>
        <el-dialog :visible.sync="visible" title="欢迎访问Element-UI">
            <p>你准备好了吗?</p>
        </el-dialog>
    </div>
</body>
<script>
    var app = new Vue({
        el:"#app",
        data:{
            visible:false,  // 遮罩层是否可见
        }
    })



</script>
</html>